#include<stdio.h>
void swap(int* a, int sz,int left,int right)
{
	while (left < right)
	{
		int tmp = 0;
		tmp = left;
		left = right;
		right = left;

		++right;
		++left;
	}

}
int main()
{
	int arr[] = { 1,2,3,4,5,6,7 };
	int i = 0;
	int k = 3;
	int left = 0;
	int sz = sizeof(arr) / sizeof(arr[0]);
	int right = sz - 1;
	swap(arr, sz,left,right);
	for (i = 0; i < sz; i++)
	{
		printf("%d ", arr[i]);
	}
	return 0;
}